{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<!-- 礼包搜索 -->
<div class="form-div">
  <form action="order.php?act=list_export" name="searchForm" method="post" target="_blank">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    <a href="activity.php?act=list&status=101">已上架</a>
    <a href="activity.php?act=list&status=102">已下架</a>
    <a href="activity.php?act=list&status=202">已回收</a>
  </form>
</div>

<!-- 礼包列表 -->
<form method="post" action="order.php?act=operate" name="listForm" onsubmit="return check()">
  <div class="list-div" id="listDiv">
{/if}
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>ID</th>
    <th>礼包名称</th>
    <th>礼包价格</th>
    <th>原价</th>
    <th>是否上架</th>
    <th>是否已回收</th>
    <th>添加时间</th>
    <th>更新时间</th>
    <th>操作</th>
  </tr>
  {foreach from=$list item=item key=key}
  <tr>
    <td align="center">{$item.parent_id}</td>
    <td align="center">{$item.name}</td>
    <td align="center">{$item.price}</td>
    <td align="center">{$item.original_price}</td>
    <td align="center"><img src="images/{if $item.is_sale}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_on_sale', {$item.parent_id})" /></td>
    <td align="center"><img src="images/{if $item.is_delete}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_on_delete', {$item.parent_id})" /></td>
    <td align="center">{$item.add_time}</td>
    <td align="center">{$item.update_time}</td>
    <td align="center"><a href="?act=edit&parent_id={$item.parent_id}">修改基础信息</a></td>
  </tr>
  {/foreach}
</table>

<!-- 分页 -->
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true">
    {include file="page.htm"}
    </td>
  </tr>
</table>
{if $full_page}
  </div>
  <div>
  </div>
</form>

<script language="JavaScript">
listTable.recordCount = {$record_count};
listTable.pageCount = {$page_count};

{if $act == "list"}
listTable.query = "query";
{/if}

{foreach from=$filter item=item key=key}
listTable.filter.{$key} = '{$item}';
{/foreach}

</script>

{include file="pagefooter.htm"}
{/if}